package com.tobie.schedule.service;

import com.tobie.schedule.pojo.entity.ScheduleEntity;

/**
 * @author Tobieance
 * @description 邮件发送验证码接口
 * @date 2023-11-17 17:55
 */
public interface IMailService {
    /**
     * 发送邮箱验证码
     *
     * @param mail 邮箱
     * @return boolean
     */
    boolean sendVerifyMail(String mail,String code);

    /**
     * 获取验证码
     *
     * @return {@link String}
     */
    String getVerifyCode();

    /**
     * 发送提醒邮件
     *
     * @param scheduleEntity 日程实体类
     * @return boolean
     */
    boolean sendAlertEmail(ScheduleEntity scheduleEntity,String mail);
}
